#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll n,f[100],t;
void dg(ll k){ 
	int i=t-1;
    for(;i>=0;--i){
        if(f[i]<=k){
            k-=f[i];
            if(i==1)cout<<"2";
            else if(i==0)cout<<"2(0)";
            else {
                cout<<"2(";
         		dg(i);
                cout<<")";
            } 
            break;	 
        }
        
    }
    for(;i>=0;--i){
        if(f[i]<=k){
            k-=f[i];
            if(i==0)cout<<"+2(0)";
            else if(i==1)cout<<"+2";
            else {
                cout<<"+2(";
                dg(i);
                cout<<")";
            }  
        }
    }
}
int main(){
    cin>>n;
    f[0]=1;
    for(int i=1;i<=100;i++){
        f[i]=f[i-1]*2;
        if(f[i]>n){
        	t=i;
            dg(n);
            break;
        }
    }
    return 0;
}
